package com.tte.common.designpattern.command;

/**
 * @ClaseName: BuyStock
 * @Description: 创建实现了 Order 接口的实体类
 * @Author: DongWH
 * @Date: 2022/3/24 10:28
 * @Param null
 * @return:
 */
public class BuyStock implements Order {
    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.buy();
    }
}